package com.jsh.erp.service;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jsh.erp.datasource.entities.Client;
import com.jsh.erp.datasource.mappers.ClientMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author: wangsaichao
 * @date: 2018/5/27
 * @description:
 */
@Service
public class ClientServiceImpl extends ServiceImpl<ClientMapper, Client> implements ClientService {

    @Autowired
    private ClientMapper clientMapper;

    public Client findByClientId(String clientId) {
        return clientMapper.findByClientId(clientId);
    }

    public Client findByClientSecret(String clientSecret) {
        return clientMapper.findByClientSecret(clientSecret);
    }
}
